server {
        listen 80 default;
        server_name _;
        return 500;
}
server {
    listen       80;
    server_name  {{SERVER_NAME}};

    location / {
        proxy_pass http://{{HALO_IP.stdout}}:8090; #halo;
        proxy_set_header Host $host;
        client_max_body_size 512m;
        proxy_connect_timeout 3600;
        proxy_send_timeout 3600;
        proxy_read_timeout 3600;
        proxy_buffering off;
        proxy_request_buffering off;
        proxy_redirect     off;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}